You are here: Building the Model: General Elements > Pre-defined Tank Subroutines > Tank_FallTrigger > Description
Waits until tank contents falls to a specified level.
Use Tank_FallTrigger to initiate an action when a tank level falls to a specific level.
Components
<Tank ID>
The tank name or location index number.
<Level>
When the tank level falls to this value, any subsequent logic executes.
Example
When an in-process tank, TankX, falls to 1000 gallons, it triggers a mixing tank to begin producing more product. To model this, define the following activated subroutine to control the mixing tank:
Tank_Loop //logic repeats continuously
{
Tank_FallTrigger(TankX, 1000)
[Insert logic to mix new batch here]
}
Please note
Using Tank_FallTrigger instead of a WAIT UNTIL statement prevents the action from triggering again until the level first rises above the fall trigger level.